package com.fizzkai.p2p.core.service.impl;

import com.fizzkai.p2p.core.domain.OrderTime;
import com.fizzkai.p2p.core.mapper.OrderTimeMapper;
import com.fizzkai.p2p.core.service.IOrderTimeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderTimeServiceImpl implements IOrderTimeService {

    @Autowired
    private OrderTimeMapper orderTimeMapper;

    @Override
    public OrderTime get(Long id) {
        return orderTimeMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<OrderTime> list() {
        return orderTimeMapper.selectAll();
    }

}
